﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Danhbaweb.master" AutoEventWireup="true" CodeFile="AddAdvertis.aspx.cs" Inherits="AddAdvertis" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        function changeName(ele) {
            if (ele.value != "") {
                document.getElementById("<%=txtfileUpload.ClientID %>").value = ele.value;
            }
        }
    </script>
    <link href="<%= ResolveUrl("~/Styles/uploader.css")%>" rel="stylesheet" type="text/css" />
    <style type="text/css">
            ul{list-style:none;}
            ul li{display:inline;}
        </style>
    <!--[if lte IE 7]>
        <style type="text/css">
            .upload-file-styele2{left:0px;}
        </style>
    <![endif]-->
    <div style="margin:0 auto">
        <div class="content_area1">
            <h1>Đăng banner</h1>
            <div style="margin-left:20px">
                <div>
                    <ul>
                        <li>Vị trí đăng quảng cáo:</li>
                        <li><asp:Label ID="lblposition" runat="server"></asp:Label></li>
                    </ul>                    
                </div>
                <div style="clear:both; padding-top:5px;">
                    <label>Chọn banner để upload</label>
                    <div class="inputcontainer">
                        <div class="upload-file-L-Style2" id="UploadButton">
                            <div class="upload-file-R-Style2">
                                <input type="button" id="btnCartBtnMidText2" class="buttonDefault form-submit" style="cursor:pointer;" value="Chọn file" />
                            </div>
                        </div>        
                        <a>
                            <asp:FileUpload ID="strFileUpload" runat="server" class="fileNamelblSelect upload-file-styele2" style="cursor:pointer; border:1px solid #c00000;"
                                onchange="javascript:changeName(this);" size="1" />
                        </a>
                        <div style="color:Black;vertical-align:middle" class="upload-text-box">
                            <asp:TextBox ID="txtfileUpload" Enabled="false" ReadOnly="true" runat="server" style="margin:2px 0 2px 3px;border:none;border-color: transparent; padding-top:3px; width:450px; background-color:#f5f5f5"></asp:TextBox>
                        </div>
                    </div>
                    <br class="clear" />
                    <asp:Label ID="lblsizebanner" runat="server"></asp:Label>&nbsp;
                    (Vui lòng chỉnh sửa kích thước hình trước khi upload)
                </div>
                <div style="clear:both; padding-top:5px; padding-left:200px">
                    <asp:Button ID="btnUploadBanner" runat="server" Text="Upload" CssClass="buttonDefault form-submit" />
                </div>
            </div>
            <br class="clear" />
            <img src="<%= ResolveUrl("~/images/bottom.jpg")%>" align="absbottom" alt="" />
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>

